import { HttpSrv } from 'lfun-bg-comp';

export interface GraduationyeaInfo {
  session_id: string;
  session_name: string;
  session_alia: string;
  session_status: string;
}

// 新增
export const create = (params: GraduationyeaInfo) =>
  HttpSrv().post('/school/v1/current-student/student-session', params);
// 删除
export const del = graduationyear_id =>
  HttpSrv().delete('/school/v1/graduationyear/', { params: { graduationyear_id } });
// 更新
export const update = (params: GraduationyeaInfo) => HttpSrv().put('/school/v1/graduationyear/', params);
// 届别管理 - 分页查询
export const search = (params: GraduationyeaInfo, page: number, per_page: number) =>
  HttpSrv().put('/school/v1/current-student/session', params);
